package com.emin.platform.subjectcenter.vo;

import com.emin.base.dao.PagedResult;
import lombok.Data;

import java.util.List;

/**
 * 页面返回封装类
 *
 * @author Jack
 * @version V1.0
 * @Title:
 * @Description: 因为前段需要一个currentPage，所以自己封装了一个页面信息返回
 * @date 2017/10/26 15:48
 */
@Data
public class PageResponse<T> extends PagedResult {
    private Integer currentPage;
    private Integer totalPageNum;


    public PageResponse(List<T> resultList, Integer nextOffset, Integer totalCount, Integer
            currentPage, Integer totalPageNum) {
        super(resultList, nextOffset, totalCount);
        this.currentPage = currentPage;
        this.totalPageNum = totalPageNum;
    }
}
